#include <stdio.h>
#include <string.h>
int Sort(char* pts);
int main(void){
	char NumsAndLetters[100];
	char * ptr;
	gets(NumsAndLetters);
	ptr = NumsAndLetters;
	puts(Sort(ptr));
	system("pause");
	return 0;
}
int Sort(char * pts){
	char SortNums[100],SortLetters[200];
	int i=0,j=0,k=0,longpts=strlen(pts);
	for(;i<longpts;i++,*pts++){
		if(*pts>='A'&&*pts<='Z'||*pts>='a'&&*pts<='z'){
			SortLetters[j]=*pts;
			j++;
		}
		else if(*pts>=48&&*pts<=57){
			SortNums[k]=*pts;
			k++;
		}
		else continue;
	}
	SortLetters[j]='\0';
	SortNums[k]='\0';
	return (pts = strcat(SortLetters,SortNums));
}
